#include <iostream>
#include <unistd.h>
using std::cout;
using std::endl;
int main()
{
    while (1)
    {
        cout << getpid() << endl;
        sleep(1);
    }
    return 0;
}